"osNpcCreate permission denied." yet they get created. 🔼
I brought my NPC tool into CG, and tried to create some NPCs, got that message, AND they got created anyway.
reported=2019-08-17 21:46:55
reporter=onefang
priority=normal
category=Bug
severity=major
resolution=fixed
2019-08-21 23:43:12 onefang: Hmmm, osNpcCreate should be unrestricted I think, but it wasn't. So why did it work anyway, coz I was HGing in?
2019-08-22 00:08:59 onefang: On sc.bigtest.org (test grid on my desktop) logging on as an ordinary user. onefang gave the NPC tool to ordinary user. onefang@IG is listed as script creator. NPC is rezzed after -
osNpcCreate permission denied. Script creator is not in the list of users allowed to execute this function and prim owner also has no permission.
osslParcelOG = "PARCELGROUPMEMBER,PARCEL_OWNER,"
osslNPC = ${XEngine|osslParcelOG}ESTATEMANAGER,ESTATEOWNER
Allow_osNpcCreate = ${XEngine|osslNPC}
User is not a member of the parcel group, not the parcel owner, not an estate manager, and not the estate owner.
Note that SC is a copy of IG, where onefang is all of the things needed. Though the scripts list onefang@IG, not just onefang, as creator.
For the original bug report, onefang@MG was HGed into CG, and got the same result.
2019-08-22 00:31:13 onefang: CheckThreatLevel() is expected to throw an exception if the threat level is too high, but I had changed things to only print a debug message, to avoid spamming users with useless stack traces. Without the exception, it bitches, but returns to let the function continue.
2019-08-22 00:55:28 onefang: Throw the expected exception.